function plotfront(A, I)
% plotfront(A, I)
%   Plots the pareto front of A for I intervals of the evolution

colors = repmat('rgbycmk', 1, ceil(I/7));
leg = {};

for i = 1:I
  P = getpareto(A(1:floor(size(A, 1)*i/I), :));
  plot(P(:, 1), P(:, 2), [colors(i) '.-']);
  leg{i} = ['front ' num2str(i)];
  hold on
end

legend(leg)

hold off
